<?xml version="1.0"?>
<Denemo>
  <merge>
    <title>A Denemo Keymap</title>
    <author>AT, JRR, RTS</author>
    <map>
      <row>
        <action>ScoreIndent</action>
        <scheme>;;;;;;;;;;;;;;; ScoreIndent Set indent
(let ((amount "0.0") (current "0.0")(thematch #f))
  (set! current (d-DirectiveGet-score-prefix "ScoreIndent"))
  (if (boolean? current)
      (set! current "4.0")
      (begin
	(set! thematch (string-match "\\layout \\{indent = ([-0-9.]+)" current))
	;;(display thematch)
	(if (regexp-match? thematch)
	    (set! current (match:substring thematch 1)))))
  (set! amount (d-GetUserInput (_ "Choose indent of first system") (_ "Give amount in decimal") current))
  ;;(display amount)
  (if amount
  	(begin
  		(if (&gt; (string-length amount) 0)
  			(begin
  				(d-DirectivePut-score-prefix "ScoreIndent" (string-append "\\layout {indent = " amount "}\n"))
  				(d-DirectivePut-score-override "ScoreIndent"	DENEMO_OVERRIDE_GRAPHIC)
  				(d-DirectivePut-score-display "ScoreIndent" (string-append (_ "indent=") amount)))
  		(d-DirectiveDelete-score "ScoreIndent"))))
  (d-SetSaved #f)
  (d-RefreshDisplay))
</scheme>
        <label>Indent</label>
        <tooltip>Indent the first system of every movement by the given amount.</tooltip>
      </row>
    </map>
  </merge>
</Denemo>
